body{
    background: url(src/picture1.jpg) no-repeat;
    font-family: Arial, sans-serif;
    background-color:white;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    background-size: cover; /* 关键属性：拉伸图片以填充容器 */
    background-repeat: no-repeat; /* 防止图片重复 */
    background-position: center;
}

.music-player {
    background-color: rgba(255, 255, 255, 0.8); /* 修改为带透明度的背景色 */
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    width: 300px;
    text-align: center;
}
h1 {
    margin: 0 0 10px;
    color:red;
}
h2 {
    margin: 0 0 10px;
    color: #333;
}

.controls button {
    margin: 5px;
    padding: 10px 20px;
    font-size: 16px;
    cursor: pointer;
    border: none;
    background-color: grey;
    color: #fff;
    border-radius: 5px;
}

.controls button:hover {
    background-color: #0056b3;
}

.playlist-wrapper {
    max-height: 150px;
    overflow-y: auto;
}

.playlist {
    margin-top: 20px;
}

.playlist ul {
    list-style: none;
    padding: 0;
}

.playlist ul li {
    margin: 5px 0;
    padding: 5px;
    background-color: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 5px;
    cursor: pointer;
}

.playlist ul li:hover {
    background-color: #e9e9e9;
}

.seek-bar {
    margin-top: 20px;
}

.seek-bar input {
    width: 100%;
}

/* 圆盘样式 */
.music-disk {
    width: 150px;
    height: 150px;
    background-color: #ccc;
    border-radius: 50%;
    margin: 20px auto;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
    animation: rotate 10s linear infinite paused;
}

/* 圆盘旋转动画 */
@keyframes rotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* 当音乐播放时，圆盘开始旋转 */
.music-player.playing .music-disk {
    animation-play-state: running;
}